package pe.hongi.frist;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.view.Window;
import android.view.WindowManager;

public class intro extends Activity
{   
	
	
	
	protected void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.intro);
		
	    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		final Handler settingHandler = new Handler();
		SettingThread setting = new SettingThread(settingHandler) ;
		setting.start();
	}
	
	class SettingThread extends Thread
	{
		Handler handler;
		
		SettingThread(Handler h)
		{
			handler = h;
		}
		public void run()
		{
			
			try
			{
				sleep(3000);
			} catch (InterruptedException e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			Message msg = handler.obtainMessage();
			mHandler.sendMessage(msg);
		}
		
	}
	
	final Handler mHandler = new Handler()
	{
		public void handleMessage(Message msg)
		{
			Intent intent = new Intent(intro.this, credu_replay.class);
			startActivity(intent);
			finish();
		}
	};
	
	protected void onPause()				
	{
		// TODO Auto-generated method stub
		super.onPause();
		finish();
	}

}
